<template>
    <div id="loading" v-show="visible">

        <div class="loading-container">
            <div class="loading-container-img">
                <img src="../../assets/loading1.gif" alt="">
            </div>
            <div></div>
        </div>
        
    </div>
</template>

<script>
export default {
    data() {
        return {
            visible:false
        }
    },
    methods: {
        // close(){
        //     setTimeout(() => {
        //         this.visible = false;
        //     },1000);
        // }
    },
}
</script>

<style lang="scss">
#loading{
    width:100vw;
    height:100vh;
    position: fixed;
    left: 0;
    top: 0;
    background-color: rgba(0,0,0,0.4);
    z-index: 999;
    .loading-container{
        width: 100%;
        height: 100%;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        .loading-container-img{
            width:60vw;
            // border:1px solid red;
            img{
                width:100%;
                height:100%;
            }
        }
    }
}
</style>